Skip to content

Comments

Add 'escript' file type and interpreter for Erlang#560

Merged
asottile merged 1 commit intopre-commit:mainfrom
sebastiw:patch-1
Feb 20, 2026
Merged

Add 'escript' file type and interpreter for Erlang#560
asottile merged 1 commit intopre-commit:mainfrom
sebastiw:patch-1

Conversation

@sebastiw
Copy link
Contributor

Hope I understand it correctly.
File types with my_script.escript should be added as Erlang, as well as when the file type is missing it can be matched by the shebang #!/usr/bin/env escript

https://www.erlang.org/doc/apps/erts/escript_cmd

Thank you

'csh': {'shell', 'csh'},
'dash': {'shell', 'dash'},
'expect': {'expect'},
'escript': {'shell', 'erlang'},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shell is usually reserved for posixlike shells (sh / bash / etc.) -- you probably just want erlang here

@asottile asottile enabled auto-merge February 20, 2026 00:17
@asottile asottile merged commit a4ed2ca into pre-commit:main Feb 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants